<layout name="../../Admin/View/master"/>

<div class="panel panel-primary">
    <!-- Default panel contents -->
    <div class="panel-heading">商品详情</div>
    <div class="panel-body">
        <ul class="list-group">
            <li class="list-group-item">商品编号 :<span style="margin-left: 50px;color:black;">{$info['gid']}</span>
            </li>
            <li class="list-group-item">商品名称 :<span style="margin-left: 50px;color:black;">{$info['gname']}</span>
            </li>
            <li class="list-group-item">商品价格 :<span style="margin-left: 50px;color:black;">{$info['price']} 元</span>
            </li>
            <li class="list-group-item">商品优惠价 :<span
                    style="margin-left: 50px;color:black;">{$info['priced']} 元</span></li>
            <li class="list-group-item">所属种类 :<span style="margin-left: 50px;color:black;">{$info['nname']}</span>
            </li>
            <li class="list-group-item">所属品牌 :<span style="margin-left: 50px;color:black;">{$info['bname']}</span>
            </li>
            <li class="list-group-item">所属分类 :<span style="margin-left: 50px;color:black;">{$info['cname']}</span>
            </li>
            <li class="list-group-item">浏览量 :<span style="margin-left: 50px;color:black;">{$info['view']}</span>
            </li>
            <li class="list-group-item">销售量 :<span style="margin-left: 50px;color:black;">{$info['buy']}</span>
            </li>
            <li class="list-group-item">发布者 :<span style="margin-left: 50px;color:black;">{$info['adduser']}</span>
            </li>
            <li class="list-group-item">发布账号:<span style="margin-left: 50px;color:black;">{$info['aname']}</span>
            </li>
            <li class="list-group-item">发布时间:<span style="margin-left: 50px;color:black;">{:date('Y年m月d日 H:i:s',$info['addtime'])}</span>
            </li>
            <li class="list-group-item">状态:<span style="margin-left: 50px;color:black;"><if
                    condition="$info['status'] eq 1 ">已上架
                <else/>
                未上架&nbsp;&nbsp;&nbsp;&nbsp;
                <div class="btn-group">
                    <a href="{:U('putaway',['gid'=>$info['gid']])}" class="btn btn-success">上架</a>
                </div>
            </if></span>
            </li>
            <li class="list-group-item">商品代表图:
                <p style="padding: 5px 5px">
                    <img src="{$info['thumb']}" width="100px" style="margin-right: 10px" alt="">
                </p>
            </li>
            <li class="list-group-item">商品缩略图:
                <p style="padding: 5px 5px">
                    <?php foreach($info['pic'] as $k=>$v){?>
                    <img src="<?php echo $v?>" width="100px" style="margin-right: 10px" alt="">
                    <?php }?>
                </p>
            </li>
            <li class="list-group-item">商品简介:
                <p style="padding: 10px 10px ;border:#ccc">
                    {$info['digest']}
                </p>
            </li>
            <li class="list-group-item">商品属性 :
                <ul class="list-group">
                    <?php foreach($info['style'] as $k=>$v) {?>
                    <?php foreach($v as $m=>$n) {?>
                    <li class="list-group-item"><?php echo $m?>:<span
                            style="margin-left: 50px;color:black;"><?php echo $n?></span></li>
                    <?php }?>
                    <?php }?>
                </ul>
            </li>
            <li class="list-group-item">商品详情:
                <p style="padding: 10px 10px ;border:#ccc">
                    {$info['content']}
                </p>
            </li>
        </ul>
    </div>


</div>

